﻿using System;

namespace diantou.web.onlineJudge
{
    /// <summary>
    /// 提交排行记录
    /// </summary>
    internal struct judgeRank<judgeType> where judgeType : diantou.dataModel.judgeState
    {
        /// <summary>
        /// 测试提交
        /// </summary>
        public judgeType Judge;
        /// <summary>
        /// 排名
        /// </summary>
        public int Index;
        /// <summary>
        /// 是否当前用户
        /// </summary>
        public bool IsSelf;
        /// <summary>
        /// 设置用户排行
        /// </summary>
        /// <param name="judge"></param>
        /// <param name="index"></param>
        /// <param name="isSelf"></param>
        public void Set(judgeType judge, int index, bool isSelf)
        {
            Judge = judge;
            Index = index;
            IsSelf = isSelf;
        }
    }
}
